<div class="frame_addfactoryDiv">
  <form name="accountForm" id="accountForm"  action="administrator-alipay-dopay" method="post">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
    <tr>
      <td width="20%" class="ri-bbgg"> 卖家用户名：</td>
      <td width="80%" class="le">
	  	<?=$this->memberArray[0]['username']?>
	  </td>
    </tr>
	<tr>
      <td width="20%" class="ri-bbgg"> 卖家支付宝账户：</td>
      <td width="80%" class="le">
	  	<?=$this->memberArray[0]['alipay']?>
	  </td>
    </tr>
	<tr>
      <td width="20%" class="ri-bbgg"> 卖家可申请金额：</td>
      <td width="80%" class="le">
	  	$<?=$this->canRequireAccount?> + $<?=$this->accountArray[0]['should_paid']?>
	  </td>
    </tr>
	<tr>
      <td width="20%" class="ri-bbgg"> 卖家本次申请金额：</td>
      <td width="80%" class="le">
	  	$<?=$this->accountArray[0]['should_paid']?>
	  </td>
    </tr>
	<tr>
      <td width="20%" class="ri-bbgg"> 申请时间：</td>
      <td width="80%" class="le">
	  	<?=date('Y-m-d H:i:s',$this->accountArray[0]['add_time'])?>
	  </td>
    </tr>
	<tr>
      <td width="20%" class="ri-bbgg"> 提款备注：</td>
      <td width="80%" class="le">
	  	<?=$this->accountArray[0]['remark']?>
	  </td>
    </tr>
	<?if($this->accountArray[0]['state']=='1'):?>
		<tr>
		  <td colspan="2" class="se" align="center">
			已经进行过提款了!
		  </td>
		</tr>
	<?else:?>
		<tr>
		  <td width="20%" class="ri-bbgg"> CDS确认提款金额：</td>
		  <td width="80%" class="le">
			<input type="text" value="" name="confirmAccount" />
		  </td>
		</tr>
		<tr>
		  <td width="20%" class="ri-bbgg"> 备注：</td>
		  <td width="80%" class="le">
			<textarea name="content" style="width:300px;height:100px"></textarea>
		  </td>
		</tr>
		<tr>
		  <td colspan="2" class="se" align="center">
			<input name="accountid" type="hidden" class="iput" value="<?=$this->accountArray[0]['accountid']?>"  />
			<input name="button1" type="button" class="iput" value="确认提款" onclick="confirmGive();" />
			<input name="button2" type="button" class="iput" value="返 回" onclick="commonEffection.confirmBack();" />
			<a href="https://www.alipay.com/trade/pay_index.htm" target="_blank">进入支付宝支付页面</a>
		  </td>
		</tr>
	<?endif;?>
  </table>
  </form>
</div>
<script>
function confirmGive(){
	if(!checkDecimal($('input[name="confirmAccount"]').val())){
		alert('请确认您要输入的提款金额!');
	}else{
		if(confirm('再次确定?')){
			$('#accountForm').submit();
		}
	}
}
</script>